package com.repository;

import com.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;


public interface UserInfoRepository extends MongoRepository<UserInfo, String> {
    /**
     *  通过手机号码查询用户
     * @param phone
     * @return
     */
    UserInfo findByPhone(String phone);
}